package com.hmyd.hmyd_android.ui;

import android.graphics.Bitmap;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.hmyd.hmyd_android.R;
import com.hmyd.hmyd_android.AppBasic;
import com.hmyd.hmyd_android.utils.Utils;
import com.lidroid.xutils.view.annotation.ContentView;
import com.lidroid.xutils.view.annotation.ViewInject;

/**
 * 安全保障
 * 
 * @author wangc
 * 
 */
@ContentView(R.layout.activity_insurance)
public class InsuranceActivity extends BasicActivity {
	// 标题栏
	@ViewInject(R.id.home_title)
	public View home_title;
	@ViewInject(R.id.home_title_txt)
	public TextView home_title_txt;
	@ViewInject(R.id.home_right)
	public TextView home_right;

	@Override
	public void onPostSuccess(int postId, String msg) {

	}

	@Override
	public void onPostFailure(int postId, String msg) {

	}

	@Override
	protected void setParams() {
		home_title_txt.setText("安全保障");
		home_title.setOnTouchListener(touch);
		
		Bitmap bmp = Utils.getBitmapFromAssets(this ,"anq_img_banner.png");
		if (null != bmp) {
			((ImageView)findViewById(R.id.security)).setImageBitmap(bmp);
		}
	}

	@Override
	protected void leftButton() {
		AppBasic.getInstance().finishCurrentActivity();
	}

	@Override
	protected void rightButton() {

	}

}
